<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$tpl_info = (object) Array(
	'show_name'=>'默认',
	'author'=>'顿娟',
	'profile'=>'默认模版',
	'create_time'=> '2012-1-1'
);

if ( ! function_exists('menu'))
{
	function menu($show_name,$max_level,$description = null,$types = null)
	{
		$menu = new stdClass();
		$menu->show_name = $show_name;
		$menu->max_level = $max_level;
		$menu->description = $description == null?$menu->show_name:$description;
		if($types == null)
		{
			$types = array(
					Menu_Item_Type::Link,
					Menu_Item_Type::Page,
					Menu_Item_Type::Article_Class
			);
		}
		$menu->types = $types;
		return $menu;
	}
}
if ( ! function_exists('menus'))
{
	function menus()
	{
		return Array(
				'top_menu'=>menu('头部菜单',3,'头部菜单'),
				'main'=>menu('主菜单',2,'主菜单，页面头部的主导航菜单'),
				'banner'=>menu('首页滑动Banner',1,'首页左上变化BANNER',array('link')),
				'services'=>menu('特色服务',1,'特色服务',array('link')),
				'friend_link'=>menu('合作伙伴',1,'合作伙伴',array('link')),
		);
	}
}